html,
body {
    margin: 0;
    padding: 0;
}

#container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    position: relative;
    /* 使子元素可以使用绝对定位 */
}

#container #img-wrapper {
    position: relative;
    /* 使子元素可以使用绝对定位 */
    display: inline-block;
    max-width: 80%;
}

#container #img-wrapper .individual-images {
    width: 100%;
    height: auto;
    object-fit: cover;
    padding: 5px;
    border-radius: 10px;
    transition: transform 0.5s;
    display: block;
}

#container #img-wrapper .hidden-img {
    display: none;
    /* 默认隐藏 */
    position: absolute;
    top: 5px;
    /* 与 img-fluid 的 padding 对齐 */
    left: 5px;
    /* 与 img-fluid 的 padding 对齐 */
    width: calc(100% - 10px);
    /* 减去 padding */
    height: calc(100% - 10px);
    /* 减去 padding */
    object-fit: cover;
    border-radius: 10px;
    /* 保持圆角 */
    z-index: 2;
    /* 设置更高的z-index */
}

#container #img-wrapper #loading_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 3;
}

#container #img-wrapper .overlay img {
    position: absolute;
    width: 30px;
    height: 30px;
    /* object-fit: cover; */
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    z-index: 4;
    /* 设置更高的z-index */
}

#name {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

#author {
    color: #666;
    margin-bottom: 5px;
    text-align: center;
}

img:hover {
    transform: scale(1.05);
}

#buttonContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    /* background-color: #f44336; */
}
#buttonContainer2 {
    display: flex;
    justify-content: center; /* 水平居中对齐 */
    align-items: center; /* 垂直居中对齐 */
    gap: 10px; /* 按钮之间的间距 */
    
}

#backButton {
    background-image: url('../images/back.png');
    width: 20px;
    height: 20px;
    background-size: cover;
    cursor: pointer;
    /* background-color: #666; */
}

#clearButton {
    background-image: url('../images/qingkong.png');
    width: 20px;
    height: 20px;
    background-size: cover;
    cursor: pointer;
    margin-right: 10px;
    /* background-color: aqua; */

     /* 文本居中显示 */
     display: flex;
     justify-content: center;
     align-items: center;
     text-align: center;
}
#moveButton {
    /* background-image: url('../images/tuodong.png'); */
    width: 40px;
    height: 20px;
    font-size: 13px;
    background-size: cover;
    cursor: pointer;
    text-align: center;
    /* background-color: #666; */
     /* 文本居中显示 */
     display: flex;
     justify-content: center;
     align-items: center;
     text-align: center;
    /* filter : invert(100%) sepia(1) saturate(10) hue-rotate(-50deg); */
}
#clearButton span, #moveButton span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* #moveButton:hover {
    filter: invert(100%)"sepia(1) saturate(10) hue-rotate(-50deg)";
} */

/* 新增的样式 */
.button-container {
    display: flex;
    justify-content: center;
    background-color: var(--bg-content-color);
    border-radius: 10px;
    padding: 10px;
    margin-top: 20px;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
}

.button-container img {
    cursor: pointer;
    margin: 0 10px;
    /* 确保图片显示原尺寸 */
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

.modal {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--bg-content-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    height: 150px;
}

.overlay {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease; /* 设置过渡效果 */
}

.modal .button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal .button-container img {
    cursor: pointer;
    margin: 0 10px;
    width: 50px;
    /* 限制图片宽度 */
    height: 50px;
    /* 限制图片高度 */
    object-fit: contain;
    /* 保持图片比例 */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
}

/* #button2 {
    filter: hue-rotate(0deg) saturate(0%);
}

#button3 {
    filter: hue-rotate(0deg) saturate(0%);
}

#button4 {
    filter: hue-rotate(0deg) saturate(0%);
} */

.next-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
}

#next-button {
    margin: 5px 0;
    padding: 10px 20px;
    font-size: 13px;
    background-color: var(--bg-color);
    cursor: pointer;
    color: #2196F3;
    border-color: var(--bg-color);
    border-radius: 10px;
    display: none;
}
.text-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
}

.text-button {
    margin: 5px 0;
    padding: 10px 20px;
    font-size: 13px;
    background-color: var(--bg-color);
    cursor: pointer;
    color: #2196F3;
    border-color: var(--bg-color);
    border-radius: 10px;
}

button {
    box-shadow: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: inherit;
}

.badge-container {
    position: relative;
    display: inline-block;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: red;
    color: white;
    font-size: 12px;
    min-width: 18px;
    /* 确保徽章有最小宽度 */
    height: 18px;
    /* 设置固定高度 */
    border-radius: 9px;
    /* 高度的一半，使其成为圆形 */
    font-weight: bold;
    display: flex;
    /* 使用 flex 布局 */
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    padding: 0 4px;
    /* 左右添加一些内边距 */
}

.custom-swal-title {
    font-size: 20px !important;
    color: #333 !important;
}

.custom-swal-content {
    font-size: 15px !important;
    color: #666 !important;
}

.custom-swal-confirm-button {
    background-color: var(--main-color) !important;
    color: white !important;
    font-size: 15px !important;
    padding: 5px 30px !important;
    border-radius: 10px !important;
    /* 添加圆角 */
    border: none !important;
    cursor: pointer !important;
    margin: 5px !important;
}

.custom-swal-cancel-button {
    background-color: #f44336 !important;
    color: white !important;
    font-size: 15px !important;
    padding: 5px 30px !important;
    border-radius: 10px !important;
    /* 添加圆角 */
    border: none !important;
    cursor: pointer !important;
    margin: 5px !important;
}

/* 悬停效果 */
.custom-confirm-button:hover,
.custom-cancel-button:hover {
    opacity: 0.8 !important;
}

.custom-swal-container {
    padding: 0 10%;
    /* 增加左右边距 */
}

.custom-swal-popup {
    width: 80% !important;
    /* 使弹窗宽度填满容器 */
    max-width: 80% !important;
    /* 覆盖默认的最大宽度 */
    background-color: var(--bg-content-color) !important;
}